package com.lyc.entity;

import java.io.Serializable;
import java.util.List;

/**
 * @Author YooLin
 * @Date 2017/8/18 17:45
 * @Description shiro向cookie记录身份信息需要用户身份信息对象实现序列化接口
 */
public class User implements Serializable {
    private Integer uid;

    private String username;

    private String password;

    private Integer age;

    private Integer sex;

    private String email;

    private List<Role> roles;

    public Integer getUid() {
        return uid;
    }

    public void setUid(Integer uid) {
        this.uid = uid;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username == null ? null : username.trim();
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password == null ? null : password.trim();
    }

    public Integer getAge() {
        return age;
    }

    public void setAge(Integer age) {
        this.age = age;
    }

    public Integer getSex() {
        return sex;
    }

    public void setSex(Integer sex) {
        this.sex = sex;
    }

    public String getEmail() {
        return email;
    }

    public void setEmail(String email) {
        this.email = email == null ? null : email.trim();
    }

    public List<Role> getRoles() {
        return roles;
    }

    public void setRoles(List<Role> roles) {
        this.roles = roles;
    }
}